import type { RouteRecordRaw } from 'vue-router'
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        name: 'home',
        meta: {
            keepAlive: true
        },
        component: () => import('@/pages/Home/index.vue')
    },
    {
        path: '/detail/:id',
        name: 'detail',
        component: () => import('@/pages/Detail/index.vue')
    },
    {
        path: '/report/:id/:examType',
        name: 'report',
        component: () => import('@/pages/Report/index.vue')
    },
    {
        path: '/record',
        name: 'record',
        meta: {
            keepAlive: true
        },
        component: () => import('@/pages/Record/index.vue')
    },
    {
        path: '/answer/:examId/:goodId/:answerType',
        name: 'answer',
        component: () => import('@/pages/Answer/index.vue')
    },
]
export default routes
